<%= form_tag(:controller => "session", :action => "changepassword") do %>
  <%= label_tag("Enter current password:") %>  
  <%= password_field_tag(:old_password) %>
  
  <%= label_tag("Enter new password:") %>  
  <%= password_field_tag(:new_password) %>
  
  <%= label_tag("Retpye new password:") %>  
  <%= password_field_tag(:retype_password) %>
  
  </br>
  <%= submit_tag "Update password",:class => "btn"%>
<% end %>
